<template>
	<!--
    	作者：1550495493@qq.com
    	时间：2019-07-18
    	描述：下载管理
    -->
	<div class="DownloadManager">
		<div class="search-box">
			<div class="fl">
				<label>简报检索：</label>
				<input name="search" class="search" type="text" autocomplete="off" v-model="search" />
				<input class="btn" type="button" value="搜索" @click="searchTodo" />
			</div>
			<div class="fr">
					<div @click="updateData(null)" class="user-box user-name">新增简报</div>
			</div>
		</div>
		<div class="PressRelease-list">
			<table>
				<thead>
					<tr>
						<th class="table-text-th4">标题</th>
						<th class="table-text-th2">发布时间</th>
						<th class="table-text-th1">发布人</th>
						<th class="table-text-th3">操作</th>
					</tr>
				</thead>
				<tbody>
          <tr v-if="briefingList.length == 0">
            <td colspan="4" class="center">暂无数据！</td>
          </tr>
          <tr v-for="briefing in briefingList">
						<td> <span class="table-text" :title="briefing.name">{{briefing.name}}</span></td>
						<td>{{formatData(briefing.createAt)}}</td>
						<td>{{briefing.publisher}}</td>
						<td>
              <input type="button" value="修改" class="delete write" @click="updateData(briefing.uuid)" />
              <input type="button" value="删除" class="delete write" @click="deleteData(briefing.id)" />
            </td>
					</tr>
				</tbody>
			</table>
			<!--total  数据总数   size  一页多少条数据   page  当前页码    changge 返回当前选择的页码  改变一页显示条 child  返回值就是一页显示条数  -->
			<pageination :total="total" :size="size" :page="page" :changge="pageFn" @child="obtainChild"></pageination>
		</div>
	</div>
</template>

<script src="./briefReport.js"></script>

<style scoped>
	@import "./briefReport.css"
</style>
